package com.kai.rpc.provider.service.impl;

import com.kai.dto.UserDto;
import com.kai.service.UserService;

import java.util.Random;

/**
 * @author kai
 * @date 2021/3/20 8:28
 * @description:
 */
public class UserServiceImpl  implements UserService {
    @Override
    public UserDto addUser(UserDto userDto) {
        userDto.setId(new Random().nextLong());
        System.out.println(userDto.getId());
        return userDto;
    }
}
